﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Jacaranda.Model
{
    public class LengthFunction : UnaryFunction
    {
        internal override string GenerateSql(Type propertyEntityType)
        {
            string fieldName = Operand.GenerateSql(propertyEntityType);
            return string.Format("LEN({0})", fieldName);
        }
    }
}
